import request from '@/utils/request'

export const getGuideList = (query) => {
  return request({
    url: '/business/model/list',
    method: 'get',
    params: query
  })
}

export const getGuideById = (modelId, query) => {
  return request({
    url: `/business/model/${modelId}`,
    method: 'get',
    params: query
  })
}

export const addGuide = (data) => {
  return request({
    url: '/business/model',
    method: 'post',
    data: data
  })
}

export const modifyGuide = (data) => {
  return request({
    url: '/business/model',
    method: 'put',
    data: data
  })
}

export const delGuides = (modelIds) => {
  return request({
    url: `/business/model/${modelIds}`,
    method: 'delete'
  })
}
